<template>
 <div class="title" :class="titleClass">
  <div class="zi">{{ title }}</div>
  <div class="bg1"></div>
  <div class="bg2"></div>
  <div class="xian">
    <div class="bg3"></div>
    <div class="bg4"></div>
  </div>
 </div>
</template>

<script>
export default {
  name:'DapingHeader',
  props:{
    title:{
      type:String,
      default:''
    },
    titleClass:{
      type:String,
      default:''
    }
  }
}
</script>

<style lang="less" scoped>
.title{
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  line-height: 100%;
  padding: 0 2rem;
  z-index: 6;
}
.mainTitle{
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: pangmenzhengdao;
  font-weight: 700;
  font-size: 3rem;
  color: @titleColor;
  border: 0px solid red;
}
.dituTitle{
  font-family: douyuFont;
  font-weight: 400;
  font-size: 1.6rem;
  color: @mkColor;
  border: 0px solid red;
}
.itemTitle{
  font-family: douyuFont;
  font-weight: 400;
  font-size: 1.4rem;
}
.textMap{
  width: 100%;
  height: 4rem;
  line-height: 4rem;
  display: block;
  box-sizing: border-box;
  position: relative;
  border: 0px solid red;
  .zi{
    width: 20rem;
    font-size: 1.8rem;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%,0);
    z-index: 6;
    border: 0px solid red;
  }
  .bg1{
    width: calc(100% - 1.4rem);
    height: 1.4rem;
    background-color: @titleBarColor;
    position: absolute;
    left: 1.4rem;
    bottom: 1rem;
    z-index: 2;
    border: 0px solid red;
  }
  .bg2{
    width: 0.7rem;
    height: 0.7rem;
    background-color: #e2b139;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
  }
  .xian{
    width: calc(100% - 1.4rem);
    height: 0.4rem;
    position: absolute;
    left: 1.4rem;
    bottom: 0;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    border: 0px solid red;
    .bg3{
      width: 49.5%;
      height: 100%;
      background-color: #e2b139;
      z-index: 3;
    }
    .bg4{
      width: 49.5%;
      height: 100%;
      background-color: #215469;
      z-index: 3;
    }
  }
}
.textLeft{
  // width: calc(100% - 1.4rem);
  width: 100%;
  height: 3rem;
  line-height: 3rem;
  display: block;
  position: relative;
  border: 0px solid red;
  .zi{
    position: absolute;
    z-index: 6;
  }
  .bg1{
    width: calc(100% - 1.4rem);
    height: 1.2rem;
    background-color: @titleBarColor;
    position: absolute;
    left: 1.4rem;
    bottom: 0.8rem;
    z-index: 2;
    border: 0px solid red;
  }
  .bg2{
    width: 0.7rem;
    height: 0.7rem;
    background-color: #e2b139;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
  }
  .xian{
    width: calc(100% - 1.4rem);
    height: 0.2rem;
    position: absolute;
    left: 1.4rem;
    bottom: 0;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    border: 0px solid red;
    .bg3{
      width: 49.5%;
      height: 100%;
      background-color: #e2b139;
      z-index: 3;
    }
    .bg4{
      width: 49.5%;
      height: 100%;
      background-color: #215469;
      z-index: 3;
    }
  }
}
</style>
